﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Shared/OneColumn.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SharingCenter.Web.Mod.Groups.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
圈子首页
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
    #g1{float:left; width:490px;}
    #g2{padding-left:510px;}
    
    .desc p
        {
            margin-top: 0;
        }
        .threadhead th, .threadtitle td
        {
            height: 30px;
            vertical-align: middle;
            border-bottom: 1px dashed #ddd;
        }
        
        .threadtitle td{border:none;}
        .threadfoot td
        {
            height: 30px;
            vertical-align: middle;
        }
</style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
 <h2 class="bb">
        <div class="nss ns-group">
        </div>
        <div class="iconlabel">
            圈子</div>
    </h2>
    <div>
        <myuc:GenericTabs ID="LinkListTabs2" runat="server" Section="Groups" SelectedItem="home"  />
        <div class="fc ctn1">
            <div id="g1">
            
                <h3 class="w5"><span class="nss ns-reply"></span>
                    <span class="iconlabel">圈子话题</span></h3>
                <asp:ListView ID="lvThreadsList" runat="server" InsertItemPosition="None">
                        <LayoutTemplate>
                            <table cellpadding="0" cellspacing="0" class="tb-full">
                                <thead>
                                    <tr class="threadhead">
                                        <th class="fw-n textnear" style="width: 250px;">
                                            &nbsp;
                                        </th>
                                        <th class="fw-n textnear ctn-p-r">
                                            <div class="nss ns-eye" title="阅读">
                                            </div>
                                        </th>
                                        <th class="fw-n textnear ctn-p-r">
                                            <div class="nss ns-reply" title="回复">
                                            </div>
                                        </th>
                                        <th class="fw-n textnear" style="width: 100px;">
                                            作者
                                        </th>
                                        <th class="fw-n textnear">
                                            最后更新
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr runat="server" id="itemPlaceholder">
                                    </tr>
                                </tbody>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr class="threadtitle">
                                <td>
                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%#Eval("ThreadId", "Posts/Posts.aspx?t={0}&u=1&id=")+Eval("ContextId") %>'
                                        Text='<%#Eval("PostTitle") %>'></asp:HyperLink>
                                </td>
                                <td>
                                    <asp:Label ID="Label5" runat="server" Text='<%#Eval("ViewCount") %>'></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label6" runat="server" Text='<%#Convert.ToInt32(Eval("TotalPosts"))-1 %>'></asp:Label>
                                </td>
                                <td>
                                    <cc:AvatarImage runat="server" AvatarType="Tiny" Width="16" UserId='<%#Eval("CreatorUserId") %>' />
                                    <cc:NickNameLink ID="NickNameLink1" runat="server" UserId='<%#Eval("CreatorUserId") %>'></cc:NickNameLink>
                                </td>
                                <td>
                                    <asp:Label ID="ThreadLastUpdate" runat="server" Text='<%#Eval("LastUpdate") %>' OnPreRender="DateFormat"></asp:Label>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <ItemSeparatorTemplate>
                            <tr>
                                <td colspan="5"><div class="hr1"></div></td>
                            </tr>
                        </ItemSeparatorTemplate>
                        <EmptyDataTemplate>
                            <span class="nss ns-info"></span>
                            <span class="litetext iconlabel">目前没有话题。</span>
                        </EmptyDataTemplate>
                    </asp:ListView>
                 <div class="ctn1">
                    <h3 class="w5">
                    <span class="nss ns-calendar"></span>
                    <span class="iconlabel">圈子活动</span>
                    </h3>
                    <asp:ListView ID="lvEventList" runat="server">
                        <LayoutTemplate>
                            <table cellpadding="0" cellspacing="0" class="tb-full threadhead">
                                <thead class="threadhead">
                                    <tr>
                                        <th class="fw-n textnear" style="width: 290px;">
                                            &nbsp;
                                        </th>
                                        <th class="fw-n textnear">
                                            <div title="活动时间" class="nss ns-clock">
                                            </div>
                                        </th>
                                        <th class="fw-n textnear">
                                            报名/上限
                                        </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr runat="server" id="itemPlaceholder" />
                                </tbody>
                            </table>
                        </LayoutTemplate>
                        <ItemTemplate>
                            <tr class="threadtitle">
                                <td>
                                    <asp:HyperLink ID="HyperLink2" runat="server" Text='<%#Eval("Title")%>' NavigateUrl='<%#Eval("EventId", "~/Mod/Events/View.aspx?id={0}") %>'></asp:HyperLink>
                                </td>
                                <td>
                                    <asp:Label ID="Label8" runat="server" Text='<%#Eval("StartDate") %>' OnPreRender="DateFormat"></asp:Label>
                                </td>
                                <td>
                                    <asp:Label ID="Label9" runat="server" Text='<%#Eval("TotalParticipants")+"/"+((int)Eval("MaxParticipants")>0?Eval("MaxParticipants"):"无限制") %>'></asp:Label>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <ItemSeparatorTemplate>
                            <tr>
                                <td colspan="3"><div class="hr1"></div></td>
                            </tr>
                        </ItemSeparatorTemplate>
                        <EmptyDataTemplate>
                         <span class="nss ns-info"></span>
                            <span class="litetext iconlabel">目前没有活动。</span>
                        </EmptyDataTemplate>
                    </asp:ListView>
                 </div>
            </div>
            <div id="g2">
                <h3 class="w7"><span class="nss ns-hot"></span>
                    <span class="iconlabel">最热的圈子</span></h3>
                <div class="ctn-p-b">
                    <myuc:GroupListBlock runat="server" ID="HotGroupList" GroupItemCount="1" />
                </div>
                <h3 class="w7">最新的圈子</h3>
                <div class="ctn-p-b">
                    <myuc:GroupListBlock runat="server" ID="NewGroupList" GroupItemCount="1" />
                </div>
            </div>
            
        </div>
    </div>
</asp:Content>
